#include<iostream>
#include<algorithm>
#include<string>
using namespace std;

string add(string& longth, string& low)
{
	string ans;
	ans.resize(longth.size());
	int end1 = longth.size()-1, end2 = low.size()-1;
	int top = 0;
	while (end2 >= 0)
	{
		int tmp = longth[end1] + low[end2--] + top - 2*'0';
		ans[end1--] = tmp % 10 + '0';
		top = tmp / 10;
	}
	while (end1 >= 0)
	{
		int tmp = longth[end1] + top - '0';
		ans[end1] = tmp % 10 + '0';
		top = tmp / 10;
		end1--;
	}
	if (top > 0)
		return '1' + ans;
	else
		return ans;
}

int main()
{
	string num1, num2;
	cin >> num1 >> num2;
	string ans;
	int len1 = num1.size(), len2 = num2.size();
	if (len1 > len2)
		ans = add(num1, num2);
	else
		ans = add(num2, num1);
	cout << ans;
	return 0;
}